package com.example.springboot_06_customglobalexception;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 自定义全局异常处理
 * 1.自定义异常，继承Runtime异常
 * 2.自定义全局异常处理，标注@ControllerAdvice（限定范围，拦截请求）
 */
@SpringBootApplication
public class SpringBoot06CustomGlobalExceptionApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringBoot06CustomGlobalExceptionApplication.class, args);
	}

}
